package cn.madog.utils;

import java.util.HashMap;

public class QuestionInfo {
    private String questionId;
    private String questionMain;
    private String questionRightAnswer;
    private String questionAnalysis;
    private HashMap<String, String> questionOption;

    // 共有题干的才会有值
    private String questionShareMain;

    public QuestionInfo() {
    }

    public QuestionInfo(String questionId, String questionMain, String questionRightAnswer, String questionAnalysis, HashMap<String, String> questionOption) {
        this.questionId = questionId;
        this.questionMain = questionMain;
        this.questionRightAnswer = questionRightAnswer;
        this.questionAnalysis = questionAnalysis;
        this.questionOption = questionOption;
    }

    public QuestionInfo(String questionId, String questionMain, HashMap<String, String> questionOption) {
        this.questionId = questionId;
        this.questionMain = questionMain;
        this.questionOption = questionOption;
    }

    public QuestionInfo(String questionId, String questionMain, HashMap<String, String> questionOption, String questionShareMain) {
        this.questionId = questionId;
        this.questionMain = questionMain;
        this.questionOption = questionOption;
        this.questionShareMain = questionShareMain;
    }

    public String getQuestionShareMain() {
        return questionShareMain;
    }

    public void setQuestionShareMain(String questionShareMain) {
        this.questionShareMain = questionShareMain;
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getQuestionMain() {
        return questionMain;
    }

    public void setQuestionMain(String questionMain) {
        this.questionMain = questionMain;
    }

    public String getQuestionRightAnswer() {
        return questionRightAnswer;
    }

    public void setQuestionRightAnswer(String questionRightAnswer) {
        this.questionRightAnswer = questionRightAnswer;
    }

    public String getQuestionAnalysis() {
        return questionAnalysis;
    }

    public void setQuestionAnalysis(String questionAnalysis) {
        this.questionAnalysis = questionAnalysis;
    }

    public HashMap<String, String> getQuestionOption() {
        return questionOption;
    }

    public void setQuestionOption(HashMap<String, String> questionOption) {
        this.questionOption = questionOption;
    }

    @Override
    public String toString() {
        return "QuestionInfo{" +
                "questionId='" + questionId + '\'' +
                ", questionMain='" + questionMain + '\'' +
                ", questionRightAnswer='" + questionRightAnswer + '\'' +
                ", questionAnalysis='" + questionAnalysis + '\'' +
                ", questionOption=" + questionOption +
                ", questionShareMain='" + questionShareMain + '\'' +
                '}';
    }
}
